package com.wmh.baseservice.user.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-08-27
 */
@ApiModel(value="UsTopUpWithdrawal对象", description="用户充值/提现表")
public class UsTopUpWithdrawal implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0充值中 1充值成功 -1充值失败")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "用户id")
    private Long usId;

    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    @ApiModelProperty(value = "审核状态:0审核中 1已通过 -1已拒绝")
    private Integer auditStatus;

    @ApiModelProperty(value = "拒绝原因")
    private String refuseReason;

    @ApiModelProperty(value = "工单号")
    private String orderNum;

    @ApiModelProperty(value = "1充值 2提现")
    private Integer type;

    public Long getId() {
        return id;
    }

    public UsTopUpWithdrawal setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public UsTopUpWithdrawal setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public UsTopUpWithdrawal setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public UsTopUpWithdrawal setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public UsTopUpWithdrawal setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public UsTopUpWithdrawal setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getUsId() {
        return usId;
    }

    public UsTopUpWithdrawal setUsId(Long usId) {
        this.usId = usId;
        return this;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public UsTopUpWithdrawal setMoney(BigDecimal money) {
        this.money = money;
        return this;
    }
    public Integer getAuditStatus() {
        return auditStatus;
    }

    public UsTopUpWithdrawal setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
        return this;
    }
    public String getRefuseReason() {
        return refuseReason;
    }

    public UsTopUpWithdrawal setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
        return this;
    }
    public String getOrderNum() {
        return orderNum;
    }

    public UsTopUpWithdrawal setOrderNum(String orderNum) {
        this.orderNum = orderNum;
        return this;
    }
    public Integer getType() {
        return type;
    }

    public UsTopUpWithdrawal setType(Integer type) {
        this.type = type;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String US_ID = "us_id";

    public static final String MONEY = "money";

    public static final String AUDIT_STATUS = "audit_status";

    public static final String REFUSE_REASON = "refuse_reason";

    public static final String ORDER_NUM = "order_num";

    public static final String TYPE = "type";

    @Override
    public String toString() {
        return "UsTopUpWithdrawal{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", usId=" + usId +
            ", money=" + money +
            ", auditStatus=" + auditStatus +
            ", refuseReason=" + refuseReason +
            ", orderNum=" + orderNum +
            ", type=" + type +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            UsTopUpWithdrawal.ID
            ,UsTopUpWithdrawal.STATUS
            ,UsTopUpWithdrawal.REMARK
            ,UsTopUpWithdrawal.VERSION
            ,UsTopUpWithdrawal.CREATE_TIME
            ,UsTopUpWithdrawal.UPDATE_TIME
            ,UsTopUpWithdrawal.US_ID
            ,UsTopUpWithdrawal.MONEY
            ,UsTopUpWithdrawal.AUDIT_STATUS
            ,UsTopUpWithdrawal.REFUSE_REASON
            ,UsTopUpWithdrawal.ORDER_NUM
            ,UsTopUpWithdrawal.TYPE
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}